<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>前后端调用-post</title>
	</head>
	<body>
		<h1>前后端调用</h1>
		<script src="../js/axios.js"></script>
		
		<script>
	let user = {
					name: '小燕子',
					age: 18,
					sex: '女'
				}
				let url = "http://localhost:8090/axios/saveUser"
				axios.post(url,user)
				     .then(promise => {
						 console.log(promise.data)
					 })
	
		</script>
		
	</body>
</html>
